package forum.command;

import forum.entities.Category;
import forum.entities.Topic;
import forum.entities.User;

public class CommandContext {
    private User user;
    private Category category;
    private Topic topic;

    public CommandContext(User user, Category category, Topic topic) {
        this.user = user;
        this.category = category;
        this.topic = topic;
    }

    public CommandContext(CommandContext context) {
        this.user = context.getUser();
        this.category = context.getCategory();
        this.topic = context.getTopic();
    }

    public User getUser() {
        return user;
    }

    public void setUser(User user) {
        this.user = user;
    }

    public Category getCategory() {
        return category;
    }

    public void setCategory(Category category) {
        this.category = category;
    }

    public Topic getTopic() {
        return topic;
    }

    public void setTopic(Topic topic) {
        this.topic = topic;
    }
}
